home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFBIND
/
VSTALIGN.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
1KB
|
47 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*------------------------------------------------------------------------
;* Set text alignment.
;*------------------------------------------------------------------------
globl _vst_alignment
_vst_alignment:
; .cargs #8,handle.w,hin.w,vin.w,hout.l,vout.l
handle = 8
hin = 10
vin = 12
hout = 14
vout = 18
link a6,#-4 ;* Allocate intout[2].
; VContrl #39,,,#2
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
move.w #2,-(sp) ; contrl[3]
subq.l #2,sp ; contrl[2]
clr.w -(sp) ; contrl[1]
move.w #39,-(sp) ; contrl[0]
subq.l #4,sp ;* -> ptsout
pea -4(a6) ;* -> intout
subq.l #4,sp ;* -> ptsin
pea hin(a6) ;* -> intin
pea 16(sp) ;* -> contrl
move.l sp,d1
jsr vditrap
move.l hout(a6),a0 ;* Return horizontal
move.w -4(a6),(a0) ;* from intout[0].
move.l vout(a6),a0 ;* Return vertical
move.w -2(a6),(a0) ;* from intout[1].
unlk a6
rts
end